package com.jiuyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuyi.entity.AddressBook;
import com.jiuyi.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DATA: 2022/10/23
 * Author: 晨夕
 */
@Mapper
public interface AddressBookMapper extends BaseMapper<AddressBook> {
    //查询收货地址集合
    List<AddressBook> selectAddressBookList(@Param("id") Long id);
    //设置默认地址
    void updateDetail(@Param("id") Long id);
    //默认地址全为0
    void updateDetailToZero(@Param("id") Long id);
    //获取默认地址
    AddressBook selectDefaultAddressBook(@Param("id") Long id);
}
